<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\Product;

class ProductController extends Controller
{
    public function index()
    {
        $product = Product::with('level')->get();
        return $this->success(200, '成功', $product->toArray());
    }
}
